<?php
ini_set("display_errors",1);
error_reporting(E_ALL);
date_default_timezone_set("Asia/Shanghai");

$pdo = require __DIR__."/lib/db.php";
require __DIR__."/lib/user.php";
require __DIR__.'/lib/arcitle.php';


// $User = new User($pdo);
// $username = "zhangsan12";
// $password = "123456";
// print_r($User->login($username,$password)) ;


// $title = "dasdasd";
// $content = "adasdasdasdasdasdasda";
// $user_id =1 ;
$Arcitle = new Arcitle($pdo);
print_r($Arcitle->view(4));
